using System;
using System.Collections.Generic;
using System.Text;

namespace MspEmulator
{
    class updateIVoltage : ISend, IUpdateDevice
    {
        private ushort iVoltage;

        public updateIVoltage(ushort value)
        {
            iVoltage = value;
        }

    
        #region ISend Members

        public void  Send()
        {
 	        Serial.Send(Utility.buildPack(Utility.collectData((byte)Utility.functCode.ionizationVoltage)));
        }

        #endregion

        #region IUpdateDevice Members

        public void  updateDevice()
        {
 	        Device.iVoltage = iVoltage;
        }

        #endregion
}
}
